package demolinkedlist;

public class Test {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addFirst(2);
        myLinkedList.addFirst(2);
        myLinkedList.addFirst(1);
        myLinkedList.addLast(10);
        myLinkedList.addLast(2);
        myLinkedList.show();
        System.out.println("=============");
        myLinkedList.addIndex(2,99);
        myLinkedList.show();
        System.out.println("=============");
        System.out.println(myLinkedList.contains(98));
        System.out.println("=============");
        System.out.println(myLinkedList.size());
        System.out.println("=============");
        myLinkedList.remove(1);
        myLinkedList.show();
        System.out.println("=============");
        myLinkedList.removeAll(2);
        myLinkedList.show();
        System.out.println("=============");
    }
}
